function exportData() {
    const param = this.getSearchForm() // 要发送到后台的数据
    axios({ // 用axios发送post请求
        method: 'post',
        url: '/mat/download', // 请求地址
        data: param, // 参数
        responseType: 'blob' // 表明返回服务器返回的数据类型
    })
        .then((res) => { // 处理返回的文件流
            const content = res
            const blob = new Blob([content])
            let date = new Date();
            const fileName = date + '.mat'
            if ('download' in document.createElement('a')) { // 非IE下载
                const elink = document.createElement('a')
                elink.download = fileName
                elink.style.display = 'none'
                elink.href = URL.createObjectURL(blob)
                document.body.appendChild(elink)
                elink.click()
                URL.revokeObjectURL(elink.href) // 释放URL 对象
                document.body.removeChild(elink)
            } else { // IE10+下载
                navigator.msSaveBlob(blob, fileName)
            }
        })
}

function S4() {
    return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
}

function guid() {
    return (this.S4() + this.S4() + "-" + this.S4() + "-" + this.S4() + "-" + this.S4() + "-" + this.S4() + this.S4() + this.S4());
}